package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(30)"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(30)"`
}
type RoleNode struct {
	gorm.Model
	Rid int `gorm:"type:varchar(30)"`
	Nid int `gorm:"type:varchar(30)"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:varchar(30)"`
	Rid int `gorm:"type:varchar(30)"`
}
type Shop struct {
	gorm.Model
	Name  string `gorm:"type:varchar(30)"`
	Price string `gorm:"type:varchar(30)"`
}
type Order struct {
	gorm.Model
	Name string `gorm:"type:varchar(30)"`
}
type Warehouse struct {
	gorm.Model
	Name string `gorm:"type:varchar(30)"`
}
type ShopOrder struct {
	gorm.Model
	Sid int `gorm:"type:int"`
	Oid int `gorm:"type:int"`
}
type OrderWarehouse struct {
	gorm.Model
	Oid int `gorm:"type:int"`
	Wid int `gorm:"type:int"`
}
